package com.itheima.sky.service;

import com.itheima.sky.dto.DishDto;
import com.itheima.sky.entity.Result;
import com.itheima.sky.pojo.Dish;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Description DishService
 * @Author jiangning
 * @Date 2024-06-29
 */
public interface DishService {
    List<Dish> getDishByCategoryId(BigDecimal cateId,Integer status);
    Result page(int page, int pageSize, String name);

    DishDto findById(Long id);

    void updateWithFlavor(DishDto dishDto);

    void saveWithFlavor(DishDto dishDto);

    List<Dish> findByCategoryId(Long categoryId, String name);
}
